<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 表情/信纸/皮肤</li>
        </ul>
    </div>
    <div id="rightside">
        <div class="contentcontainer">
            <div class="headings altheading">
                <h2>表情/信纸/皮肤 管理</h2>
            </div>
            <div class="contentbox">
                <div class="extrabottom">
                    <form method="get" action="admin.php">
                    	附件id:<input type='text' name='id' class='inputbox smallbox' value="{$id}"/>
                    	类型选择:<select name="type">
                       	 	<option value="1"{$type[1]}>表情</option>
                       	 	<option value="2"{$type[2]}>信纸</option>
                       	 	<option value="3"{$type[3]}>皮肤</option>
                       	 </select>
                       	 系统选择:<select name="system">
                       	 	<option value="1"{$system[1]}>安卓</option>
                       	 	<option value="2"{$system[2]}>IOS</option>
                       	 </select>
                       	 时间:<input type='text' name='time1' class='inputbox smallbox' value="{$time[0]}"/>-
					    	<input type='text' name='time2' class='inputbox smallbox' value="{$time[1]}"/>
                       	 顺序选择:<select name="ordersc">
                       	 	<option value="desc"{$orderscArr['desc']}>降序</option>
                       	 	<option value="acs"{$orderscArr['acs']}>升序</option>
                       	 </select>
                       	 显示选择:<select name="perpage">
                            <option value="20"{$perpageArr[20]}>每页显示20个</option>
                            <option value="50"{$perpageArr[50]}>每页显示50个</option>
                            <option value="100"{$perpageArr[100]}>每页显示100个</option>
                         </select>
                         <input type="hidden" value="resource" name="ac">
                         <input type="hidden" value="searchResource" name="op">
                         <input type="hidden" value="1" name="query">
                         <input type="submit" value="查询" class="btn" /> 
                    </form>
               	 <div class="btn" style="width:45px;"><a target="_blank" href="admin.php?ac=resourceadd">添加附件</a></div>
                </div>
                <div style="clear: both;"></div>
                <table width="100%">
                    <thead>
                        <tr>
                            <th>附件id</th>
                            <th>附件类型</th>
                            <th>附件名称</th>
                            <th>系统类型</th>
                            <th>资源包地址</th>
                            <th>上传时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    	<!--{loop $result $list}-->
                    	<tr>
                    	<th>{$list['id']}</th>
                    	<th>
							<!--{if $list['type'] == 1}-->
                    		表情
                    		<!--{elseif $list['type'] == 2}-->
                    		信纸
                    		<!--{else}-->
                    		皮肤
                    		<!--{/if}-->
						</th>
                    	<th>{$list['name']}</th>
                    	<th>
                    		<!--{if $list['system'] == 1}-->
                    		安卓
                    		<!--{else}-->
                    		IOS
                    		<!--{/if}-->
                    	</th>
                    	<th>{$list['url']}</th>
                    	<th><!--{date('Y-m-d H:i:s',$list['time'])}--></th>
                    	<th>
                    		<a style="font-size:30px;" href="admin.php?ac=resource&op=getManageResource&id={$list[id]}" target="_blank">
                            	<img src="static/img/icons/gif_view.gif" width="24" height="24" />
                            </a>&nbsp;
                            <a href="admin.php?ac=resource&id={$list[id]}&op=modManageResource" target="_blank">
                            	<img src="static/img/icons/gif_edit.gif" width="24" height="24" />
                            </a>
                            <a href="admin.php?ac=resource&id={$list[id]}&op=delManageResource">
                            	<img src="static/img/icons/gif_remove.gif" width="24" height="24" />
                            </a>
                    	</th>
                    	</tr>
                    	<!--{/loop}-->
                    </tbody>
                </table>
                <div class="extrabottom">
                    <ul>
                    	<li><img src="static/img/icons/gif_view.gif" />资源详情</li>
                        <li><img src="static/img/icons/gif_edit.gif" />编辑资源</li>
                        <li><img src="static/img/icons/gif_remove.gif" />删除资源</li>
                    </ul>
                    <div class="bulkactions">
                        <ul class="pagination">
                            <!--{if $prevpurl!=''}-->
                            <li class="text"><a href="{$firstpurl}" title="">第一页</a></li>
                            <li class="text"><a href="{$prevpurl}" title="">上一页</a></li>
                            <!--{/if}-->
                            <li class="text"><a href="{$nextpurl}" title="">下一页</a></li>
                        </ul>
                        <div style="clear: both;"></div>
                    </div>
                </div>
                <div style="clear: both;"></div>
            </div>
        </div>
    </div>
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->